package com.yulinlin.admin.modules.sys.domain;

import com.yulinlin.admin.core.domain.SuperEntity;
import com.yulinlin.admin.modules.sys.constant.SysUserConstant;
import com.yulinlin.jdbc.model.anno.JoinField;
import com.yulinlin.jdbc.model.anno.JoinTable;
import com.yulinlin.jdbc.model.anno.JoinWhere;
import com.yulinlin.jdbc.serialize.ListString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;



@Data
@ApiModel("系统部门")
@JoinTable("sys_dept")
public class SysDeptEntity extends SuperEntity<SysDeptEntity>  {




        @NotEmpty(message = "必填")
        @ApiModelProperty("图标")
        @JoinWhere
        @JoinField
        private String logo;

        @NotEmpty(message = "必填")
        @ApiModelProperty("父编号")
        @JoinWhere
        @JoinField
        private String parentId;

        @NotEmpty(message = "必填")
        @ApiModelProperty("父路径")
        @JoinWhere
        @JoinField
        private String parentPath;

        @NotEmpty(message = "必填")
        @ApiModelProperty("部门名称")
        @JoinWhere
        @JoinField
        private String deptName;

        @NotEmpty(message = "必填")
        @ApiModelProperty("排序数字")
        @JoinWhere
        @JoinField
        private Integer sortValue;




}
